﻿using ApplicationModels.A02.Identities;
using Commons.Responses;

namespace IApplicationServices
{
    public interface IAuthenticationService
    {
        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<AppUserAM> GetUserSelfAsync(Guid id);
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<MessageResponse> DeletedUserAsync(Guid id);

        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="oldPwd"></param>
        /// <param name="newPwd"></param>
        /// <returns></returns>
        Task<MessageResponse> ChangeMyPasswordAsync(string oldPwd, string newPwd);



    }
}
